package com.zqr.wait_notify;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zqr
 * @since 2022/11/4
 */
public class Test {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        Integer size = 3;
        Integer productSpeed = 1000;
        Integer consumeSpeed = 800;
        new Thread(new Consumer01(list, size, consumeSpeed), "消费者1").start();
        new Thread(new Consumer01(list, size, consumeSpeed), "消费者2").start();
        new Thread(new Productor01(list, size, productSpeed), "生产者1").start();
    }
}
